<?php
defined('_JEXEC') or die('Restricted access');

$style_path = 'components' . DS . 'com_einsaetze' . DS . 'styles' . DS .					'general.css';
$photo_path = 'components' . DS . 'com_einsaetze' . DS . 'assets' . DS . 'images'  . DS .  	'foto.png';

echo JHtml :: _('stylesheet', $filename, $path);

foreach($this->years as $years){
	echo $years->nr_jahr;
}
$test = array();
$test[] = JHTML::_('select.option','2009');
$test[] = JHTML::_('select.option','2010');

echo JHTML::_('select.genericlist', $test, 'testeingabe', 'onchange="submit();"');
?>

</form>
<table >
	<tr>
		<th style="background-color: grey">Jahr</th>
		<th style="background-color: grey">Nr.</th>
		<th style="background-color: grey">Datum</th>
		<th style="background-color: grey">Uhrzeit</th>
		<th style="background-color: grey">Einsatzart</th>
		<th style="background-color: grey">Einsatzort</th>
		<th style="background-color: grey">Fotos</th>
		<th style="background-color: grey">Bericht</th>
		
	</tr>
	<? foreach ($this->einsaetze as $einsaetze){ ?>
	<tr>
		<td style="background-color: lightgrey"><? echo $einsaetze->nr_jahr ?></td>
		<td style="background-color: lightgrey"><? echo $einsaetze->nr_lfd ?></td>
		<td style="background-color: lightgrey"><? echo $einsaetze->date_alamierung  ?></td>
		<td style="background-color: lightgrey"><? echo $einsaetze->time_alamierung ?> Uhr</td>
		<td style="background-color: lightgrey"><? echo $einsaetze->bez_lang ?></td>
		<td style="background-color: lightgrey"><? echo $einsaetze->txt_ort ?></td>
		<td align="center" style="background-color: lightgrey">
		<? if($einsaetze->kz_fotos == '1' ){ echo JHTML::_('image', $photo_path );  } ?>
		</td>
		<td style="background-color: lightgrey"><a href="?<? echo $einsaetze->id_einsaetze?>">Bericht</a></td>
		
	</tr>
	<? } ?> 
</table> 